Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Check if a pointer is NULL before dereferencing #346

Merged
merged 1 commit into from
Feb 5, 2024

Conversation

henrybear327
Copy link
Collaborator

Fix a bug where the pointer returned by malloc() is dereferenced before checking if it's NULL.

@henrybear327 henrybear327 self-assigned this Feb 5, 2024
@henrybear327 henrybear327 requested a review from jserv February 5, 2024 18:41
@jserv jserv merged commit cbab5b8 into sysprog21:master Feb 5, 2024
7 checks passed
vestata pushed a commit to vestata/rv32emu that referenced this pull request Jan 24, 2025
checking if it is NULL.

Co-authored-by: Chun-Hung Tseng <chun-hung.tseng@swisscom.com>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants